package com.lhz.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the dingdandetail database table.
 * 
 */
@Entity
@NamedQuery(name="Dingdandetail.findAll", query="SELECT d FROM Dingdandetail d")
public class Dingdandetail implements Serializable {

	private static final long serialVersionUID = 3835764213282289395L;

	@Id
	private int dingdanDT_id;

	private int num;

	private BigDecimal price;

	private int status;

	//bi-directional many-to-one association to Dingdan
	@ManyToOne
	@JoinColumn(name="dingdan_id")
	private Dingdan dingdan;

	//bi-directional many-to-one association to Good
	@ManyToOne
	@JoinColumn(name="goods_id")
	private Good good;
	


	public Dingdandetail() {
	}

	public int getDingdanDT_id() {
		return this.dingdanDT_id;
	}

	public void setDingdanDT_id(int dingdanDT_id) {
		this.dingdanDT_id = dingdanDT_id;
	}

	public int getNum() {
		return this.num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Dingdan getDingdan() {
		return this.dingdan;
	}

	public void setDingdan(Dingdan dingdan) {
		this.dingdan = dingdan;
	}

	public Good getGood() {
		return this.good;
	}

	public void setGood(Good good) {
		this.good = good;
	}

}